﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/DefaultNonMenu.master" AutoEventWireup="true" CodeBehind="OrderEdit.aspx.cs" Inherits="Runda.EShop.SaaS.OrderManage.OrderEdit" %>
<%@ Register Src="~/UserControl/LeftMenu.ascx" TagPrefix="uc" TagName="LeftMenu" %>
<%@ Register Src="~/UserControl/OrderInfo.ascx" TagPrefix="uc" TagName="OrderInfo" %>
<%@ Register Assembly="Runda.EShop.Common.Component" Namespace="Runda.EShop.Common.Component"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
    <link href="../Content/Order.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function Check() { 
        
        }
    </script>
</asp:Content> 
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
<div id="process" class="section3">
    <asp:Literal ID="ltlProcess" runat="server"></asp:Literal> 
 </div>
<div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />订单信息</span>
    </div>
    <div class="clear"></div>
    <uc:OrderInfo runat="server" ID="ucOrderInfo" />
    <div class="clear"></div>
      <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />订单产品</span>
    </div>
    <div class="clear"></div>
    <asp:GridView ID="gvOrderDetail" runat="server" AutoGenerateColumns="False" DataKeyNames="DetailID,ProductID"
    OnRowDeleting="gvOrderDetail_RowDeleting"
        OnRowDataBound="gvOrderDetail_RowDataBound" Width="100%">
        <Columns>
            <asp:BoundField DataField="ProductCode" HeaderText="产品编号" ItemStyle-Width="80px" />
            <asp:BoundField DataField="ProductName" HeaderText="产品名称" ItemStyle-Width="270px" /> 
            <asp:BoundField DataField="ProductStd" HeaderText="规格" ItemStyle-Width="150px" /> 
            <asp:TemplateField HeaderText="计量单位">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlUnit" runat="server">
                    <asp:ListItem Text="盒" Value="盒"></asp:ListItem>
                    <asp:ListItem Text="支" Value="支"></asp:ListItem>
                    </asp:DropDownList>
                </ItemTemplate>
                <ItemStyle Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="数量">
                <ItemTemplate>
                    <cc1:IntegerTextBox ID="txtQuantity" runat="server" Text='<%# Eval("Quantity") %>' Width="36px"></cc1:IntegerTextBox> 
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>            
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:ImageButton ID="btnDelete" runat="server" CommandName="delete" ImageUrl="~/Images/ico/del15x15.jpg" ClientIDMode="Static" OnClientClick="return confirm('此操作会删除订单产品，确认此操作吗？');"/>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
 <div class="i_tablebt_xian" style="margin:10px 0px 0px 0px; width:100%;"> 
</div>
 <div class="banner7 r">
        <asp:LinkButton ID="btnSave" runat="server" onclick="btnSave_Click" ClientIDMode="Static" OnClientClick="return Check();">保存修改</asp:LinkButton>
</div> 

</asp:Content>
